package fr.ssd.sdl.loader;

import java.util.Map;

/**
 * 
 * {@code init(...);}
 * {@code String statement = loadSqlStatement();}
 * {@code terminate();}
 * 
 * @author Sylvain Sicard
 * 
 */
public interface Loader {

	/**
	 * 
	 * @param hints initialization context. Content is implementation specific.
	 * @throws LoaderException if a problem occurs during the initialization of this loader.
	 */
	public void init(Map<String, ?> hints) throws LoaderException;

	/**
	 * 
	 * @return
	 * @throws LoaderException
	 */
	public String loadSqlStatement() throws LoaderException;

	/**
	 * 
	 * @throws LoaderException
	 */
	public void terminate() throws LoaderException;

}
